home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 117 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: redstone.interpath.net!usenet
  2. From: jamie@jamie.interpath.net (Jim Cooper)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: SAS/C+Floating point problem
  5. Date: 2 Jan 1996 16:46:37 GMT
  6. Organization: Interpath -- Providing Internet access to North Carolina
  7. Distribution: inet
  8. Message-ID: <4cbnhd$ac6@redstone.interpath.net>
  9. References: <4c9b1p$46p@nntp.hut.fi>
  10. NNTP-Posting-Host: raleigh2-36.interpath.net
  11. Mime-Version: 1.0
  12. Content-Type: text/plain; charset=iso-8859-1
  13. Content-Transfer-Encoding: 8bit
  14. X-NewsReader: Interworks_GRn 3.0b23 December 28, 1995
  15.  
  16. In article <4c9b1p$46p@nntp.hut.fi> mhtammin@snakemail.hut.fi (Marko H. Tamminen) writes:
  17. > I'm having major problems with SAS/C (v6) and it's floating points.
  18.  
  19. v6.??  You should be at 6.56.  If not, please download the 6.55 & 6.56
  20. patches from AmiNET biz/patch dir, and apply ASAP.
  21.  
  22. > They work OK when I compile my program using the -lm option, but
  23. > when I've got a smakefile and use it, they don't seem to work. If I have 
  24. > a printf("%f",1.0); it just prints %f to the shell!! And also all 
  25. > calculations seem to be wrong, but can't check it, as I can't print out 
  26. > the results. sprintf is also malfunctioning!
  27. > In my smakefile I have MATH F in the compiler-options and lib:scmffp.lib 
  28. > is linked too.
  29. > What am I doing wrong, and how should I fix it? It's really starting to 
  30. > bugger me, and my project is in a stall because of this...
  31.  
  32.  
  33. *Where* is scmffp.lib "linked"?  When linking with a math library, it *must*
  34. be specified before any others.  Look in the library reference manual for
  35. details on linking order.
  36.  
  37. -- 
  38. Jim Cooper | World: jamie@interpath.com | "I-Net 225 is my life... or at
  39.            | BIX:   jcooper             |  least it seems like it!"  :-)
  40.  
  41. Definition of Perfection: Dysfunctionally Challenged.
  42.